Corrected errors in login module