removed print_r
added validation in the userlogs model