Added features: loggin in functionality