login successful and sending user to edit page