Fixed small bugs. Fixed login