Bug in view for login register