added decorator for checking if user exists and checkpass function