update of successfull login if-statement