changes flash notice, adds login tests