Begins Login Functionality