Fixed Login bug
Fixed some warnings