Moving password field and fixing a nil error in appcontroller