20141027 added login related functionalities