login functionality changed: using basicauth

implemented basicauth for login. Expecting header named 'Authorization' containing values as 'Basic username:password" where username:password to be encoded in base64.