added links to registration, auto-login after registration