Minor fixes

Added login check for empty form and did a little bit of refactoring
like changing login from fragment to activity