changed guest login functionality
changed login functionality