login and registration work completely