Added basic login functionality on backend