added login functionality and profile activity

fixed back to mainactivity buttod