Login form working but values should be entered into the database