changed login error from flash[:notice] to flash[:error]