made login functional