user login/register functionality added