login logout functionality with validation(using laravel classes)