Added static function to User class to check login

.Added static function to User class to check login and implemented it in the Student index #20