login mechanism added