Added Login functionality using auth logic