Fixed a small bug, and implemented so that login directs you further if already logged in, and automatic login after signup