Adding login functionality.