Made login into a stored procedure