added login activity, processing of login activity and storage of
credentials