added sign up page, re-did some code structure at login etc