trying login mechanism