adding get method in login controller