added logic for login action