Login Working with validation