Created simple login function.