Add below lines in the functions.php file:
function custom_login_logo()
{
echo ‘<style type=”text/css”> h1 a {
background-image:url(‘ . get_bloginfo(‘template_directory’) . ‘/images/admin.png) !important; } </style>’;
}
add_action(‘login_head’, ‘custom_login_logo’);