Login now works
Removed unused code
Added and cleaned code