Authorization form

Hello everyone!

I am currently doing the authorization form project on the Codecademy code editor and for some reason I cannot get past the last step. Every time I try to put in the password (which i changed to my name just to be sure), I can not get through to the contact info. I have looked over it multiple times and I have followed the video ( I even made some tweaks then), but I can not figure it out, would anyone have any advice?

import React from 'react';
import ReactDOM from 'react-dom';

class Contact extends React.Component {
  constructor(props) {
    this.state = {
      password: 'calvin',
      authorized: false
    this.authorize = this.authorize.bind(this);

  authorize(e) {
    const password =
    const auth = password == this.state.password;
      authorize: auth

  render() {
    const login = (
      action = "#"
      onSubmit = {this.authorized} >
      type = "password"
      placeholder = "Password" />
      <input type = "submit" />

    const contactInfo = (

    return (
      <div id="authorization">
        <h1>{this.state.authorized ? 'Contact' : 'Enter the Password'}</h1>
        {this.state.authorized ? contactInfo : login}

  <Contact />, 

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.