added styling and finished working login function from a dictionary.