     lastname: @linkState "lastname"
     firstname: @linkState "firstname"
     email: @linkState "email"
-    teamName: @linkState "team_name"
-    teamPassword: @linkState "team_password"
 
     if @state.page == "Team Management"
       <div>
         <Col md={6} mdOffset={3}>
-          <TeamManagementForm onTeamJoin={@onTeamJoin} onTeamRegistration={@onTeamRegistration} {...links}/>
+          <TeamManagementForm/>
         </Col>
       </div>
     else



TeamManagementForm = React.createClass

  componentDidMount: ->
    $("input").prop 'required', true

  componentDidUpdate: ->
    $("input").prop 'required', true

  render: ->
    towerGlyph = <Glyphicon glyph="tower"/>
    lockGlyph = <Glyphicon glyph="lock"/>

    <Panel>
      <form onSubmit={@props.onTeamJoin}>
        <Input type="text" valueLink={@props.teamName} addonBefore={towerGlyph} label="Team Name"/>
        <Input type="password" valueLink={@props.teamPassword} addonBefore={lockGlyph} label="Team Password"/>
        <Col md={6}>
          <span>
            <Button type="submit">Join Team</Button>
            <Button onClick={@props.onTeamRegistration}>Register Team</Button>
          </span>
        </Col>
        <Col md={6}>

            else
              document.location.href = "/profile"

  setPage: (page) ->
    @setState update @state,
        page: $set: page
