login bug

fixed problem with user login in and making other users crash