Preparation to handle login