Completed login functions - Successful login needed to be completed for client side